from django.urls import path
from apps.users.views import LogoutView, UsernameCountView, RegisterView, LoginView
# from apps.users.views import MobilesCountView
from apps.users.views import CenterView,EmailView,EmailVerifyView,AddressCreateView,AddressView
from apps.users import views
from apps.users.views import UserHistoryView


urlpatterns = [
    path('usernames/<username:username>/count/', UsernameCountView.as_view()),
    # path('mobiles/<mobile:mobile>/count/', MobilesCountView.as_view()),
    path('mobiles/<int:mobile>/count/', views.MobilesCountView),
    path('register/', RegisterView.as_view()),
    path('login/', LoginView.as_view()),
    path('logout/', LogoutView.as_view()),
    path('info/', CenterView.as_view()),
    path('emails/', EmailView.as_view()),
    path('emails/verification/', EmailVerifyView.as_view()),
    path('addresses/create/', AddressCreateView.as_view()),
    path('addresses/', AddressView.as_view()),
    path('browse_histories/', UserHistoryView.as_view()),
]
 